package org.opens.service.impl;

import org.opens.service.TestService;
import org.springframework.stereotype.Component;

import javax.jws.WebService;

/**
 * 功能描述
 *
 * @author by zhangyuming
 * @date 2022/8/18
 */
@WebService(
        // 与接口中指定的name一致
        serviceName = "TestService",
        // 与接口中的命名空间一致,一般是接口的包名倒
        targetNamespace = "http://service.opens.org",
        // 接口地址
        endpointInterface = "org.opens.service.TestService"
)
@Component
public class TestServiceImpl implements TestService {

    @Override
    public String sendMessage(String username) {
        return "=====Hello! " + username + "=====";
    }

    @Override
    public boolean getFlag(String username) {
        return true;
    }
}
